package com.xcw.entity.req;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Access;
import java.util.Objects;

/**
 * @Author bhx
 * @Date 2022/6/22 0:37
 * @Description TODO
 */
@Data
@Accessors(chain = true)
public class UserLoginParams {

    private String userName;

    private String password;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserLoginParams that = (UserLoginParams) o;
        return Objects.equals(userName, that.userName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userName, password);
    }
}
